<template>
  <view class="container">
    <t-index-address @select="select"></t-index-address>
  </view>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  onLoad() {},
  methods: {
    select(data) {
      console.log(data);
      uni.setStorageSync('currentcity', data.name + '市');
      uni.navigateBack();
      // uni.redirectTo({
      //   url: '/pages/endaddress/endaddress'
      // });
    }
  }
};
</script>

<style lang="scss" scoped>
.container {
  box-sizing: border-box;
}
</style>
